# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=adwaita-icon-theme
pkgver=3.36.1
pkgrel=0
pkgdesc="Adwaita icon theme"
url="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
arch="noarch !s390x !mips !mips64" # librsvg
options="!check"  # Icons only, no binaries.
license="LGPL-3.0-or-later OR CC-BY-SA-3.0"
depends="librsvg"
makedepends="intltool gtk+2.0 gtk+3.0 icon-naming-utils"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/adwaita-icon-theme/${pkgver%.*}/adwaita-icon-theme-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install pkgconfigdir=/usr/lib/pkgconfig
}

sha512sums="5df33c8592ebd17e05fb36590423177fa3e07345565302a5b7ef58fb7d7a9b2b3a1789907a81f5ca0abc7446f7e83af059ca9d6432e8182d5274394c79a24fb9  adwaita-icon-theme-3.36.1.tar.xz"
